<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?xml version="1.0" encoding="utf-8" ?>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>

<link rel="stylesheet" href="../js/jquery.mobile-1.2.0.min.css" />
	<link rel="stylesheet" href="../css/base.css"/>
	<script src="../js/jquery-1.8.2.min.js"></script>
	<script src="../js/jquery.mobile-1.2.0.min.js"></script>

<title>Insert title here</title>

</head>
<body>
<div id="add" data-role="page" class="iphonebody">
	<div data-role="header" data-position="fixed" class="iphonebar" id="insertdiv">
			<div><h1>社員の意見</h1></div>
			<a href="/SBVoice/opinion/select.action?pageStatus=<s:property value='pageStatus'/>&search=<s:property value='search'/>" data-icon="arrow-l" data-theme="b" data-transition="slide"  data-direction="reverse" >戻る</a>
	</div>


		<div data-role="content" >

			<a href="#" data-role="button" data-theme="b" >意見の投稿</a>
			<form action="/SBVoice/opinion/regist.action" method="post"  data-transition="slide" data-direction="reverse">
			<textarea cols="40" row="8" onblur="Limit(this)" maxlength="120" name="contents" id="add" style="height:150px"></textarea>
			<div class="gray">
			120文字まで入力可能。<br>
			投稿者の氏名は公表しませんが、<br>
			システム内部で管理します。<br>
			</div>
			<input type="submit" value="投稿" id="regist"/>
			</form>
		</div>



</div>

</body>
</html>

<script type="text/javascript">
function Limit(obj){
	alert("AAA");
    var maxLength = parseInt(obj.getAttribute("maxlength"));
    if(obj.value.length > maxLength){
        obj.value = obj.value.substring(0,maxLength);
        return;
    }
}
</script>
